package com.api.syh56.shengyunhui.service.impl;

import com.api.syh56.shengyunhui.entity.Driver;
import com.api.syh56.shengyunhui.mapper.DriverMapper;
import com.api.syh56.shengyunhui.service.DriverService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DriverServiceImpl extends ServiceImpl<DriverMapper, Driver> implements DriverService {
    @Autowired
    private DriverMapper driverMapper;
    @Override
    public Driver selectById(Long id) {
        return driverMapper.selectById(id);
    }
//
//    public Driver selectOne(){
//        QueryWrapper<Driver> driverQueryWrapper = new QueryWrapper<>();
//        Driver driver = driverMapper.selectOne(driverQueryWrapper);
//    }
}
